<div class="ibox">
	<div class="ibox-title">
		<h5>字典管理</h5>
		<div class="nowrap pull-right" style="margin-top:10px">
	    	<button data-modal='dic/edit?pid=${pid?c}' data-title="添加字典" class='layui-btn layui-btn-small'><i class='fa fa-plus'></i> 添加字典</button>
		</div>
	</div>
<div class="ibox-content fadeInUp animated">
<form onsubmit="return false;" data-auto="" method="POST">
    <input type="hidden" value="resort" name="action"/>
    <table class="table table-hover">
        <thead>
            <tr>
            	<th class='text-center'>ID</th>
                <th class='text-left'>名称</th>
                <th class='text-center'>icon</th>
                <th class='text-center'>状态</th>
                <th class='text-center'>操作</th>
            </tr>
        </thead>
        <tbody>
            <#list diclist as dic>
            <tr>
            	<td class='text-center'>${dic.id?c}</td>
                <td class='text-left'>${dic.spl!""}${dic.name!""}</td>
                <td class='text-center'>
					<img data-tips-image="" style="height:auto;max-height:32px;min-width:32px" src='${dic.icon!""}'/>
				</td>
				<td class='text-center'>
                	 <#if dic.status==1>
                        <span style="color:#090">使用中</span>
                     <#else>
                        <span>已禁用</span>
                     </#if>
                </td>
                <td class='text-center nowrap'>
                	<a data-modal='dic/edit?id=${dic.id?c}&pid=${pid?c}' href="javascript:void(0)">编辑</a>
                	<span class="text-explode">|</span>
                	<#if dic.status==1>                   
                    	<a data-load='dic/updateStatus?status=0&id=${dic.id?c}'   data-confirm="确定要禁用吗？" href="javascript:void(0)">禁用</a>
                    <#else>
                    	<a data-load='dic/updateStatus?status=1&id=${dic.id?c}'   data-confirm="确定要启用吗？" href="javascript:void(0)">启用</a>
                    </#if>
                	<span class="text-explode">|</span>
					<a data-load='dic/del?id=${dic.id?c}' data-confirm="确定要删除吗？"  href="javascript:void(0)">删除</a>
				</td>
            </tr>
           	</#list>
        </tbody>
    </table>
</form>
</div>
</div>